Configure Java Certificate Trust
Purpose
Palette and RM make outgoing HTTPS connections to the OCI Identity Domain and, potentially, other OIRW services. Java must trust the certificates presented by those remote servers.
This section configures outgoing Java trust. It does not configure the server certificate and private key used by Palette or RM to accept incoming HTTPS connections.
| Item | Used for |
|---|---|
| Server certificate and private key | Clients connecting to Palette or RM |
| Java truststore | Palette or RM connecting to Identity Domains or another HTTPS server |
Use the Standard JDK Truststore First
JAVA_DIR=<JDK_HOME> JDK_CACERTS="$JAVA_DIR/lib/security/cacerts" ls -l "$JDK_CACERTS" |
Do not modify the original JDK cacerts file.
Verify Network Access
IDCS_HOST="<IDENTITY_DOMAIN_HOSTNAME>" IDCS_URI="https://$IDCS_HOST" getent hosts "$IDCS_HOST" curl -I "$IDCS_URI" curl -sS "$IDCS_URI/.well-known/openid-configuration" | head |
Expected result: JSON containing fields such as issuer, authorization_endpoint, and token_endpoint.
If DNS resolution or port 443 access fails, correct network, DNS, firewall, or proxy configuration before modifying a truststore.
Inspect the Identity Domain Certificate
openssl s_client -connect "${IDCS_HOST}:443" -servername "$IDCS_HOST" </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates
|
Confirm that:
-
The certificate is not expired.
-
The subject or Subject Alternative Name matches the Identity Domain hostname.
-
The issuer is a trusted public or approved corporate CA.
Do not manually import the Identity Domain leaf certificate unless instructed by the security or PKI team. Leaf certificates can be renewed and are not reliable long-term trust anchors.
Determine Whether a Combined Truststore Is Required
A combined truststore is required when:
-
Palette or RM must trust an internal or self-signed OIRW certificate.
-
A corporate TLS-inspection proxy substitutes the Identity Domain certificate with one issued by an internal CA.
The combined truststore must contain both:
Standard JDK public CA certificates + Approved internal OIRW or corporate CA certificates |
Do not create a truststore containing only the internal certificate; this can remove public CA certificates required for Identity Domain access.
Create the Combined PKCS12 Truststore
SSL_DIR=<OIRW_HOME>/ssl_cert COMBINED_STORE="$SSL_DIR/oirw-combined-truststore-<YYYYMMDD>" ls -l "$COMBINED_STORE" umask 077 "$JAVA_DIR/bin/keytool" -importkeystore -srckeystore "$JDK_CACERTS" -destkeystore "$COMBINED_STORE" -deststoretype PKCS12 |
If the output file already exists, make a backup before overwriting it.
keytool prompts for a new combined-truststore password, confirmation, and the source JDK truststore password. For an unmodified JDK installation, the source cacerts password is commonly changeit. Use the approved password for the installed JDK.
Import an Approved Internal CA Certificate
Request the approved root or intermediate CA certificate from the security or PKI team.
"$JAVA_DIR/bin/keytool" -printcert -file "$SSL_DIR/approved-internal-ca.pem" |
Verify the certificate’s subject, issuer, validity dates, and SHA-256 fingerprint against the value supplied by the security or PKI team.
Never import private keys, client secrets, truststore passwords, or access tokens into a truststore.
"$JAVA_DIR/bin/keytool" -importcert -alias oirw-approved-internal-ca -file "$SSL_DIR/approved-internal-ca.pem" -keystore "$COMBINED_STORE" -storetype PKCS12 |
Review the certificate details and enter yes when prompted.
Verify and Protect the Truststore
"$JAVA_DIR/bin/keytool" -list -keystore "$COMBINED_STORE" -storetype PKCS12 | head "$JAVA_DIR/bin/keytool" -list -v -keystore "$COMBINED_STORE" -storetype PKCS12 -alias oirw-approved-internal-ca chmod 600 "$COMBINED_STORE" ls -l "$COMBINED_STORE" |
Expected output includes:
Keystore type: PKCS12 Keystore provider: SUN |
The imported certificate should have entry type trustedCertEntry.
Configure Palette and RM
Add these Java properties to the Palette and RM startup commands:
-Djavax.net.ssl.trustStore=<TRUSTSTORE_PATH> -Djavax.net.ssl.trustStorePassword=<PROVIDED_SECURELY_AT_RUNTIME> -Djavax.net.ssl.trustStoreType=PKCS12 |
Supply the truststore password through approved service configuration or secret management.
Restart and Verify Services
tail -f <OIRW_HOME>/palette/palette.log lsof -nP -iTCP:9443 -sTCP:LISTEN tail -f <OIRW_HOME>/rm/rm.log lsof -nP -iTCP:9444 -sTCP:LISTEN |